<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>修改</title>
</head>
<body>
<h3>修改用户</h3>
<hr/>
<form th:action="@{/user/update}" method="post">
    <input type="hidden" name="id" th:value="${user.id}"/><br/>
    姓名：<input type="text" name="userName" th:value="${user.userName}"/><br/>
    地址：<input type="text" name="address" th:value="${user.address}"/><br/>
    角色：<input type="radio" name="roleId" value="1" th:attr="checked=${user.roleId==1?true:false}"/>管理员
    <input type="radio" name="roleId" value="2" th:attr="checked=${user.roleId==2?true:false}"/>测试<br/>
    入职日期：<input type="date" name="inputDate" th:value="${#dates.format(user.inputDate,'yyyy-MM-dd')}"/><br/>
    <input type="submit" value="确定"/><br/>
</form>
</body>
</html>